<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <title>Document</title>
  <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
  </script>
  <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>

<body>
  <button id="btn">按钮</button>
  <script>
    $("#btn").on("click", function () {
      axios({
        url: "http://m801.music.126.net/20201227114240/cd65e1749f473b9e3ea125ae19d0c977/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/5258591663/61bf/33cf/e6a5/da47602351f7f71aea8c1e88de587411.mp3",
        method: "get",
        responseType: "blob"
      }).then(result => {
        // console.log(result);
        const blob = new Blob([result.data], {
          type: "audio/mpeg"
        });
        // alert(result.data);
        const url = window.URL.createObjectURL(blob);
        console.log(url);
        let a = document.createElement('a');
        a.download = "1.mp3";
        a.href = url;
        // a.href = "http://m801.music.126.net/20201227114240/cd65e1749f473b9e3ea125ae19d0c977/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/5258591663/61bf/33cf/e6a5/da47602351f7f71aea8c1e88de587411.mp3"
        a.click();
      })
    })
  </script>
</body>

</html>